<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 		<base href="<%=basePath%>">
		<meta http-equiv="X-UA-Compatible" content="IE=8" />
		<title>Default Examples</title>
</head>

<body bgcolor="#EEF2FB">
    <center>
        <table width="100%" border="0">
          <tr>
            <td colspan="6">&nbsp;</td>
          </tr>
          <tr>
            <td width="15%">&nbsp;</td>
            <td width="24%" align="center">帖子</td>
            <td width="17%" align="center">时间</td>
            <td width="17%" align="center">回帖次数</td>
            <td width="17%" align="center">发帖人</td>
            <td width="10%">&nbsp;</td>
          </tr>
          <s:iterator value="#session.PostList" id="post">
	          <tr>
	            <td>&nbsp;</td>
	            <td align="center"><a href="postAction!viewPostById?postid=<s:property value="#post.postid"/>" ><s:property value="#post.headline"/></a></td>
	            <td align="center"><s:property value="#post.posttime"/></td>
	            <td align="center"><s:property value="#post.replynum"/></td>
	            <td align="center"><s:property value="#session.UserName.userName"/></td>
	            <td>&nbsp;</td>
	          </tr>
	      </s:iterator>
        </table>
    </center>
</body>

</html>
